/* eslint-env node, browser, jasmine */
import * as git from 'isomorphic-git'

describe('exports', () => {
  it('exposes only the intended API functions', async () => {
    const names = Object.keys(git)
    expect(names.sort()).toMatchInlineSnapshot(`
      [
        "Errors",
        "STAGE",
        "TREE",
        "WORKDIR",
        "abortMerge",
        "add",
        "addNote",
        "addRemote",
        "annotatedTag",
        "branch",
        "checkout",
        "clone",
        "commit",
        "currentBranch",
        "default",
        "deleteBranch",
        "deleteRef",
        "deleteRemote",
        "deleteTag",
        "expandOid",
        "expandRef",
        "fastForward",
        "fetch",
        "findMergeBase",
        "findRoot",
        "getConfig",
        "getConfigAll",
        "getRemoteInfo",
        "getRemoteInfo2",
        "hashBlob",
        "indexPack",
        "init",
        "isDescendent",
        "isIgnored",
        "listBranches",
        "listFiles",
        "listNotes",
        "listRefs",
        "listRemotes",
        "listServerRefs",
        "listTags",
        "log",
        "merge",
        "packObjects",
        "pull",
        "push",
        "readBlob",
        "readCommit",
        "readNote",
        "readObject",
        "readTag",
        "readTree",
        "remove",
        "removeNote",
        "renameBranch",
        "resetIndex",
        "resolveRef",
        "setConfig",
        "stash",
        "status",
        "statusMatrix",
        "tag",
        "updateIndex",
        "version",
        "walk",
        "writeBlob",
        "writeCommit",
        "writeObject",
        "writeRef",
        "writeTag",
        "writeTree",
      ]
    `)
  })
})
